a=list([1,1,1,2,3,4,4,3])

a=set(a)
print(a)

b=set([1,1,1,1,1,3,3,3,2,2,2,5,5,5,6,6,6])
print(b)


print(a|b)
print(a.union(b))
print(b.union(a))

print(a&b)
print(a.intersection(b))
print(b.intersection(a))

print(a-b)
print(a.difference(b))
print(b.difference(a))

print(a^b)

a.add(100)
print(a)

a.remove(100)
print(a)
      
a.update([4,5,6,7])
print(a)